package cn.lixu.pet.domain;

import cn.lixu.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LiXu
 * @date 2022/08/06 0006 10:40:43
 */
@Data
public class PetType extends BaseDomain {
    private String name;
    private String description;
    private String dirPath;
    private Long pid;
    //用于封装当前部门的子部门
    //部门树最后一级没有数据就不显示
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    List<PetType> children = new ArrayList<>();
}
